using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using ISXWoW;
using LavishVMAPI;
using InnerSpaceAPI;

namespace ISXUGAuction
{
    class UGMail
    {
        /* UNDERGROUNDMAIL
         * ================================================
         * Holds all the information you'd want to get
         * about a mail as of this patch. There's new
         * things that might come out about "stationary"
         * in the API but as of now they aren't implemented.
         * ================================================ */

        public int index;
        public string sender;
        public string subject;
        public int money;
        public int CODAmmount;
        public double daysleft;
        public bool hasItem;
        public bool wasRead;
        public bool wasReturned;
        public bool textCreated;
        public bool canReply;
        public bool isGM;

        public UGMail(int index, string sender, string subject, int money, int CODAmmount, double daysleft, int hasItem,
            int wasRead, int wasReturned, int textCreated, int canReply, int isGM)
        {
            this.index = index;
            this.sender = sender;
            this.subject = subject;
            this.money = money;
            this.CODAmmount = CODAmmount;
            this.daysleft = daysleft;
            this.hasItem = false;
            this.wasRead = false;
            this.wasReturned = false;
            this.textCreated = false;
            this.canReply = false;
            this.isGM = false;
            if (hasItem == 1)
                this.hasItem = true;
            if (wasRead == 1)
                this.wasRead = true;
            if (wasReturned == 1)
                this.wasReturned = true;
            if (textCreated == 1)
                this.textCreated = true;
            if (canReply == 1)
                this.canReply = true;
            if (isGM == 1)
                this.isGM = true;
        }
    }
}
